package ink.metoo.gude.module.file.config

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import software.amazon.awssdk.services.s3.S3Client
import kotlin.test.Test

@SpringBootTest
class CloudflareR2ClientTest {

    @Autowired
    private lateinit var s3Client: S3Client

    @Test
    fun testBuildS3Client(): Unit = try {
        s3Client.getObject {
            // it.bucket("r2-dev")
            it.key("mao.jpg")
        }

        Unit
    } catch (e: Exception) {
        e.printStackTrace()
    }

}